package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wtwd.device.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 每日步数
 * </p>
 *
 * @author mjy
 * @since 2024-05-25
 */
@ApiModel(value = "DeviceStep对象", description = "每日步数")
public class DeviceStep extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "设备ID")
    private Long deviceId;

    @ApiModelProperty(value = "总步数")
    private Integer totalSteps;

    @ApiModelProperty(value = "yyyyMMdd")
    private String time;

    @ApiModelProperty(value = "数据来源 0设备,1:app")
    private Integer type;

    @ApiModelProperty(value = "序列号")
    private String number;

    @ApiModelProperty(value = "设备最后一次详细信息表主键id")
    private Long lastInfoId;

    public Long getLastInfoId() {
        return lastInfoId;
    }

    public void setLastInfoId(Long lastInfoId) {
        this.lastInfoId = lastInfoId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getTotalSteps() {
        return totalSteps;
    }

    public void setTotalSteps(Integer totalSteps) {
        this.totalSteps = totalSteps;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "DeviceStep{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", totalSteps=" + totalSteps +
                ", time=" + time +
                ", type=" + type +
                ", number='" + number + '\'' +
                ", lastInfoId=" + lastInfoId +
                '}';
    }
}
